<?php
	//define('NO_SESSION',1);
	require_once 'core/Debug.php'; //System Debug...
	require_once 'core/config.php';//System Config...
	require_once 'core/Init.php';  //System Init...
	require_once 'includes/xml.class.php';  //XMLLib xml class...
	
	//System process & output for ajax request

     $choice = array(
            "index"      =>        "index",
            "item"       =>        "xml_item",
            "rss"        =>        "rss",
            "gallery"    =>        "xml_gallery"
    );
    
	$action = AZLib::getParam('act');    
    
	if ($action == "" || $choice[$action]=="") {	
		$choice[$action]="index";
	}

	require_once(ROOT_PATH."includes/xml_action/".$choice[$action].".xml.php");

    $run_me = new $choice[$action] ();
	$run_me->playme();
	        	
	//End process & ouput

	//Stop System
	System::halt();
?>